projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
33e690a
)
sizerequest: Make invisible widgets return a 0x0 size.
author
Benjamin Otte
<otte@redhat.com>
Tue, 8 Jan 2013 11:26:04 +0000
(12:26 +0100)
committer
Benjamin Otte
<otte@redhat.com>
Tue, 8 Jan 2013 11:26:04 +0000
(12:26 +0100)
gtk/gtksizerequest.c
patch
|
blob
|
history
diff --git
a/gtk/gtksizerequest.c
b/gtk/gtksizerequest.c
index 7ad94398bb4aa88dc5fde0db7da2b00bcfcf3d68..4d54821c0e96242bf047164e176738fc619462ae 100644
(file)
--- a/
gtk/gtksizerequest.c
+++ b/
gtk/gtksizerequest.c
@@
-268,6
+268,15
@@
_gtk_widget_compute_size_for_orientation (GtkWidget *widget,
gpointer key;
gint min_result = 0, nat_result = 0;
+ if (!gtk_widget_get_visible (widget))
+ {
+ if (minimum)
+ *minimum = 0;
+ if (natural)
+ *natural = 0;
+ return;
+ }
+
if (G_LIKELY (!_gtk_widget_get_sizegroups (widget)))
{
gtk_widget_query_size_for_orientation (widget, orientation, for_size, minimum, natural);